﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;

namespace source
{
    public partial class ProfesorKontrola : UserControl
    {
        public ProfesorKontrola()
        {
            InitializeComponent();
        }
        public ProfesorKontrola(Profesor profesor)
        {
            InitializeComponent();
            //pictureBox1.Image = profesor.Slika;
            System.Reflection.Assembly myAssembly = System.Reflection.Assembly.GetExecutingAssembly();
            Stream myStream = myAssembly.GetManifestResourceStream("source.33.jpg");

            pictureBox1.BackgroundImage = new Bitmap(myStream);
            pictureBox1.BackgroundImageLayout = ImageLayout.Stretch;
            label2.Text = profesor.Ime;
            label4.Text = profesor.Prezime;
            label6.Text = profesor.DatumRodjenja.ToShortDateString();
            label8.Text = profesor.Adresa;
            label10.Text = profesor.Telefon;
            label12.Text = profesor.Email;
            label14.Text = profesor.Drzavljanstvo;
            label16.Text = "Implementirati";
            label18.Text = profesor.DatumZaposlenja.ToShortDateString();
            label20.Text = "Implementirati";
            label22.Text = "Implementirati";
            label24.Text = "Implementirati";
            richTextBox1.Text = profesor.CV;
        }
    }
}
